﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace QLBH.Models
{
    public class StaffModel:ModelBase
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private DateTime created_at;

        public DateTime Created_at
        {
            get { return created_at; }
            set { created_at = value; }
        }
        private DateTime updates_at;

        public DateTime Updates_at
        {
            get { return updates_at; }
            set { updates_at = value; }
        }
        private String username;

        public String Username
        {
            get { return username; }
            set { username = value; }
        }
        private String password;

        public String Password
        {
            get { return password; }
            set { password = value; }
        }
        private String name;

        public String Name
        {
            get { return name; }
            set { name = value; }
        }
        private String birthdate;

        public String Birthdate
        {
            get { return birthdate; }
            set { birthdate = value; }
        }
        private String address;

        public String Address
        {
            get { return address; }
            set { address = value; }
        }
        private int people_id;

        public int People_id
        {
            get { return people_id; }
            set { people_id = value; }
        }
        private int phone;

        public int Phone
        {
            get { return phone; }
            set { phone = value; }
        }
        private int salary;

        public int Salary
        {
            get { return salary; }
            set { salary = value; }
        }
        private String email;

        public String Email
        {
            get { return email; }
            set { email = value; }
        }
        private int shop_id;

        public int Shop_id
        {
            get { return shop_id; }
            set { shop_id = value; }
        }
        private String comment;

        public String Comment
        {
            get { return comment; }
            set { comment = value; }
        }
        private String configPassWord;

        public String ConfigPassWord
        {
            get { return configPassWord; }
            set { configPassWord = value; }
        }
        public StaffModel()
        {
        }
        public override NameValueCollection PrepareValue()
        {
            NameValueCollection uploadVals = new NameValueCollection();
            uploadVals.Add("name", this.Name);
            uploadVals.Add("address", this.Address);
            uploadVals.Add("username", this.Username);
            uploadVals.Add("password", this.Password);
            uploadVals.Add("name",this.Name);
            uploadVals.Add("birthdate",this.Birthdate.ToString());
            uploadVals.Add("address", this.Address);
            uploadVals.Add("people_id", this.People_id.ToString());
            uploadVals.Add("phone",this.Phone.ToString());
            uploadVals.Add("salary", this.Salary.ToString());
            uploadVals.Add("email", this.Email);
            uploadVals.Add("shop_id", this.Shop_id.ToString());
            uploadVals.Add("comment", this.Comment);
            uploadVals.Add("configPassWord",this.ConfigPassWord);
            return uploadVals;
        }
    }
}
